import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:niuniu/common/constant/AssetsImage.dart';
import 'package:niuniu/pages/my/controller.dart';
import 'package:niuniu/pages/my/official_customer_service/controller.dart';
import 'package:get/get.dart';

class OfficialCustomerServicePage extends GetView<OfficialCustomerServiceController> {
  const OfficialCustomerServicePage({Key? key}) : super(key: key);

  // 主视图
  Widget buildView() {
    return Container(
      padding: EdgeInsets.only(left: 15.w, right: 15.w),
      child: Center(child: Image.asset(AssetsImage.officialPng))
    );
  }

  @override
  Widget build(BuildContext context) {
    return GetBuilder<MyController>(
      init: MyController(),
      id: "official-customer-service-page",
      builder: (_) {
        return Scaffold(
          appBar: AppBar(title: const Text("官方客服")),
          body: SafeArea(child: Container(
            margin: EdgeInsets.only(top: 10.h, bottom: 10.h),
            child: buildView(),
          )),
        );
      },
    );
  }
}
